package com.zsrt.java.ex5;

public abstract class ComCar {
	
	private int id;
	private String name;
	private int price;
	private String type;
	
	public abstract void info();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "ComCar [id=" + id + ", name=" + name + ", price=" + price + ", type=" + type + "]";
	}

	
	
}
